﻿using System.ComponentModel; // INotifyPropertyChanged
using System.Collections.Generic; // IEnumerable
using System.Collections.ObjectModel; // ObservableCollection
using System.Xml.Linq;

using System;

namespace BEO
{

    //public class ErrandCollection : ObservableCollection<Errand>, INotifyPropertyChanged
    public class ErrandCollection : ObservableCollection<Errand>
    {

        #region Members



        #endregion

        #region Constructors

        // Empty ErrandCollection
        public ErrandCollection() : base()
        {

        }

        // ErrandCollection using xml as source
        public ErrandCollection(XDocument xDocument)
        {
            // todo: dmm: implement this
        }

        #endregion

        // string from collection
        public string Serialize()
        {
            // todo: dmm: convert collection to XDocument

            return string.Empty;
        }

        // collection from string
        public void Deserialize(string str)
        {

        }

    }
}
